<?php
/* 
* @Author: LDF QQ 47121862
* @Date:   2014-06-12 17:37:21
* @Last Modified by:   LDF QQ 47121862
* @Last Modified time: 2014-06-12 17:58:24
*/
Class ConfigControl extends Control{
	function __auto(){
		$const=M('config')->all();
		$arr=array();
		foreach ($const as $k => $v) {
			$arr[$v['name']]=$v['val'];
		}
		$this->const=$arr;
	}
}
